package com.blacktry.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blacktry.entity.model.FillQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blacktry.entity.model.request.QuestionRequest;

import java.util.List;

/**
 * <p>
 * 填空题题库 服务类
 * </p>
 *
 * @author blackTry
 * @since 2021-08-10
 */
public interface QuestionService {

    int insert(QuestionRequest question);

    Integer delete(Integer id);

    Integer deleteBatchIds(String[] ids);

    Integer updateOrInsert(QuestionRequest question);

    QuestionRequest select(Integer id);

    List<QuestionRequest> selectAll();

    Page<QuestionRequest> selectPage(QuestionRequest question, Page<QuestionRequest> QuestionPage);

    List<QuestionRequest> findByType(Integer flag);
}
